# -*- coding: utf-8 -*-
#
#  Copyright 2019 The FATE Authors. All Rights Reserved.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: processor.proto

import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


import kv_pb2 as kv__pb2
import storage_basic_pb2 as storage__basic__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='processor.proto',
  package='com.webank.ai.fate.api.eggroll.processor',
  syntax='proto3',
  serialized_options=None,
  serialized_pb=_b('\n\x0fprocessor.proto\x12(com.webank.ai.fate.api.eggroll.processor\x1a\x08kv.proto\x1a\x13storage-basic.proto\"#\n\x0bProcessConf\x12\x14\n\x0cnamingPolicy\x18\x01 \x01(\t\"d\n\x08TaskInfo\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x13\n\x0b\x66unction_id\x18\x02 \x01(\t\x12\x16\n\x0e\x66unction_bytes\x18\x03 \x01(\x0c\x12\x1a\n\x12isInPlaceComputing\x18\x04 \x01(\x08\"\xde\x01\n\x0cUnaryProcess\x12@\n\x04info\x18\x01 \x01(\x0b\x32\x32.com.webank.ai.fate.api.eggroll.processor.TaskInfo\x12G\n\x07operand\x18\x02 \x01(\x0b\x32\x36.com.webank.ai.fate.api.eggroll.storage.StorageLocator\x12\x43\n\x04\x63onf\x18\x03 \x01(\x0b\x32\x35.com.webank.ai.fate.api.eggroll.processor.ProcessConf\"\xa3\x02\n\rBinaryProcess\x12@\n\x04info\x18\x01 \x01(\x0b\x32\x32.com.webank.ai.fate.api.eggroll.processor.TaskInfo\x12\x44\n\x04left\x18\x02 \x01(\x0b\x32\x36.com.webank.ai.fate.api.eggroll.storage.StorageLocator\x12\x45\n\x05right\x18\x03 \x01(\x0b\x32\x36.com.webank.ai.fate.api.eggroll.storage.StorageLocator\x12\x43\n\x04\x63onf\x18\x04 \x01(\x0b\x32\x35.com.webank.ai.fate.api.eggroll.processor.ProcessConf2\xd7\n\n\x0eProcessService\x12u\n\x03map\x12\x36.com.webank.ai.fate.api.eggroll.processor.UnaryProcess\x1a\x36.com.webank.ai.fate.api.eggroll.storage.StorageLocator\x12{\n\tmapValues\x12\x36.com.webank.ai.fate.api.eggroll.processor.UnaryProcess\x1a\x36.com.webank.ai.fate.api.eggroll.storage.StorageLocator\x12w\n\x04join\x12\x37.com.webank.ai.fate.api.eggroll.processor.BinaryProcess\x1a\x36.com.webank.ai.fate.api.eggroll.storage.StorageLocator\x12s\n\x06reduce\x12\x36.com.webank.ai.fate.api.eggroll.processor.UnaryProcess\x1a/.com.webank.ai.fate.api.eggroll.storage.Operand0\x01\x12\x7f\n\rmapPartitions\x12\x36.com.webank.ai.fate.api.eggroll.processor.UnaryProcess\x1a\x36.com.webank.ai.fate.api.eggroll.storage.StorageLocator\x12v\n\x04glom\x12\x36.com.webank.ai.fate.api.eggroll.processor.UnaryProcess\x1a\x36.com.webank.ai.fate.api.eggroll.storage.StorageLocator\x12x\n\x06sample\x12\x36.com.webank.ai.fate.api.eggroll.processor.UnaryProcess\x1a\x36.com.webank.ai.fate.api.eggroll.storage.StorageLocator\x12\x80\x01\n\rsubtractByKey\x12\x37.com.webank.ai.fate.api.eggroll.processor.BinaryProcess\x1a\x36.com.webank.ai.fate.api.eggroll.storage.StorageLocator\x12x\n\x06\x66ilter\x12\x36.com.webank.ai.fate.api.eggroll.processor.UnaryProcess\x1a\x36.com.webank.ai.fate.api.eggroll.storage.StorageLocator\x12x\n\x05union\x12\x37.com.webank.ai.fate.api.eggroll.processor.BinaryProcess\x1a\x36.com.webank.ai.fate.api.eggroll.storage.StorageLocator\x12y\n\x07\x66latMap\x12\x36.com.webank.ai.fate.api.eggroll.processor.UnaryProcess\x1a\x36.com.webank.ai.fate.api.eggroll.storage.StorageLocatorb\x06proto3')
  ,
  dependencies=[kv__pb2.DESCRIPTOR,storage__basic__pb2.DESCRIPTOR,])




_PROCESSCONF = _descriptor.Descriptor(
  name='ProcessConf',
  full_name='com.webank.ai.fate.api.eggroll.processor.ProcessConf',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='namingPolicy', full_name='com.webank.ai.fate.api.eggroll.processor.ProcessConf.namingPolicy', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=92,
  serialized_end=127,
)


_TASKINFO = _descriptor.Descriptor(
  name='TaskInfo',
  full_name='com.webank.ai.fate.api.eggroll.processor.TaskInfo',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='task_id', full_name='com.webank.ai.fate.api.eggroll.processor.TaskInfo.task_id', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='function_id', full_name='com.webank.ai.fate.api.eggroll.processor.TaskInfo.function_id', index=1,
      number=2, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='function_bytes', full_name='com.webank.ai.fate.api.eggroll.processor.TaskInfo.function_bytes', index=2,
      number=3, type=12, cpp_type=9, label=1,
      has_default_value=False, default_value=_b(""),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='isInPlaceComputing', full_name='com.webank.ai.fate.api.eggroll.processor.TaskInfo.isInPlaceComputing', index=3,
      number=4, type=8, cpp_type=7, label=1,
      has_default_value=False, default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=129,
  serialized_end=229,
)


_UNARYPROCESS = _descriptor.Descriptor(
  name='UnaryProcess',
  full_name='com.webank.ai.fate.api.eggroll.processor.UnaryProcess',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='info', full_name='com.webank.ai.fate.api.eggroll.processor.UnaryProcess.info', index=0,
      number=1, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='operand', full_name='com.webank.ai.fate.api.eggroll.processor.UnaryProcess.operand', index=1,
      number=2, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='conf', full_name='com.webank.ai.fate.api.eggroll.processor.UnaryProcess.conf', index=2,
      number=3, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=232,
  serialized_end=454,
)


_BINARYPROCESS = _descriptor.Descriptor(
  name='BinaryProcess',
  full_name='com.webank.ai.fate.api.eggroll.processor.BinaryProcess',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='info', full_name='com.webank.ai.fate.api.eggroll.processor.BinaryProcess.info', index=0,
      number=1, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='left', full_name='com.webank.ai.fate.api.eggroll.processor.BinaryProcess.left', index=1,
      number=2, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='right', full_name='com.webank.ai.fate.api.eggroll.processor.BinaryProcess.right', index=2,
      number=3, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='conf', full_name='com.webank.ai.fate.api.eggroll.processor.BinaryProcess.conf', index=3,
      number=4, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=457,
  serialized_end=748,
)

_UNARYPROCESS.fields_by_name['info'].message_type = _TASKINFO
_UNARYPROCESS.fields_by_name['operand'].message_type = storage__basic__pb2._STORAGELOCATOR
_UNARYPROCESS.fields_by_name['conf'].message_type = _PROCESSCONF
_BINARYPROCESS.fields_by_name['info'].message_type = _TASKINFO
_BINARYPROCESS.fields_by_name['left'].message_type = storage__basic__pb2._STORAGELOCATOR
_BINARYPROCESS.fields_by_name['right'].message_type = storage__basic__pb2._STORAGELOCATOR
_BINARYPROCESS.fields_by_name['conf'].message_type = _PROCESSCONF
DESCRIPTOR.message_types_by_name['ProcessConf'] = _PROCESSCONF
DESCRIPTOR.message_types_by_name['TaskInfo'] = _TASKINFO
DESCRIPTOR.message_types_by_name['UnaryProcess'] = _UNARYPROCESS
DESCRIPTOR.message_types_by_name['BinaryProcess'] = _BINARYPROCESS
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

ProcessConf = _reflection.GeneratedProtocolMessageType('ProcessConf', (_message.Message,), dict(
  DESCRIPTOR = _PROCESSCONF,
  __module__ = 'processor_pb2'
  # @@protoc_insertion_point(class_scope:com.webank.ai.fate.api.eggroll.processor.ProcessConf)
  ))
_sym_db.RegisterMessage(ProcessConf)

TaskInfo = _reflection.GeneratedProtocolMessageType('TaskInfo', (_message.Message,), dict(
  DESCRIPTOR = _TASKINFO,
  __module__ = 'processor_pb2'
  # @@protoc_insertion_point(class_scope:com.webank.ai.fate.api.eggroll.processor.TaskInfo)
  ))
_sym_db.RegisterMessage(TaskInfo)

UnaryProcess = _reflection.GeneratedProtocolMessageType('UnaryProcess', (_message.Message,), dict(
  DESCRIPTOR = _UNARYPROCESS,
  __module__ = 'processor_pb2'
  # @@protoc_insertion_point(class_scope:com.webank.ai.fate.api.eggroll.processor.UnaryProcess)
  ))
_sym_db.RegisterMessage(UnaryProcess)

BinaryProcess = _reflection.GeneratedProtocolMessageType('BinaryProcess', (_message.Message,), dict(
  DESCRIPTOR = _BINARYPROCESS,
  __module__ = 'processor_pb2'
  # @@protoc_insertion_point(class_scope:com.webank.ai.fate.api.eggroll.processor.BinaryProcess)
  ))
_sym_db.RegisterMessage(BinaryProcess)



_PROCESSSERVICE = _descriptor.ServiceDescriptor(
  name='ProcessService',
  full_name='com.webank.ai.fate.api.eggroll.processor.ProcessService',
  file=DESCRIPTOR,
  index=0,
  serialized_options=None,
  serialized_start=751,
  serialized_end=2118,
  methods=[
  _descriptor.MethodDescriptor(
    name='map',
    full_name='com.webank.ai.fate.api.eggroll.processor.ProcessService.map',
    index=0,
    containing_service=None,
    input_type=_UNARYPROCESS,
    output_type=storage__basic__pb2._STORAGELOCATOR,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='mapValues',
    full_name='com.webank.ai.fate.api.eggroll.processor.ProcessService.mapValues',
    index=1,
    containing_service=None,
    input_type=_UNARYPROCESS,
    output_type=storage__basic__pb2._STORAGELOCATOR,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='join',
    full_name='com.webank.ai.fate.api.eggroll.processor.ProcessService.join',
    index=2,
    containing_service=None,
    input_type=_BINARYPROCESS,
    output_type=storage__basic__pb2._STORAGELOCATOR,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='reduce',
    full_name='com.webank.ai.fate.api.eggroll.processor.ProcessService.reduce',
    index=3,
    containing_service=None,
    input_type=_UNARYPROCESS,
    output_type=kv__pb2._OPERAND,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='mapPartitions',
    full_name='com.webank.ai.fate.api.eggroll.processor.ProcessService.mapPartitions',
    index=4,
    containing_service=None,
    input_type=_UNARYPROCESS,
    output_type=storage__basic__pb2._STORAGELOCATOR,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='glom',
    full_name='com.webank.ai.fate.api.eggroll.processor.ProcessService.glom',
    index=5,
    containing_service=None,
    input_type=_UNARYPROCESS,
    output_type=storage__basic__pb2._STORAGELOCATOR,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='sample',
    full_name='com.webank.ai.fate.api.eggroll.processor.ProcessService.sample',
    index=6,
    containing_service=None,
    input_type=_UNARYPROCESS,
    output_type=storage__basic__pb2._STORAGELOCATOR,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='subtractByKey',
    full_name='com.webank.ai.fate.api.eggroll.processor.ProcessService.subtractByKey',
    index=7,
    containing_service=None,
    input_type=_BINARYPROCESS,
    output_type=storage__basic__pb2._STORAGELOCATOR,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='filter',
    full_name='com.webank.ai.fate.api.eggroll.processor.ProcessService.filter',
    index=8,
    containing_service=None,
    input_type=_UNARYPROCESS,
    output_type=storage__basic__pb2._STORAGELOCATOR,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='union',
    full_name='com.webank.ai.fate.api.eggroll.processor.ProcessService.union',
    index=9,
    containing_service=None,
    input_type=_BINARYPROCESS,
    output_type=storage__basic__pb2._STORAGELOCATOR,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='flatMap',
    full_name='com.webank.ai.fate.api.eggroll.processor.ProcessService.flatMap',
    index=10,
    containing_service=None,
    input_type=_UNARYPROCESS,
    output_type=storage__basic__pb2._STORAGELOCATOR,
    serialized_options=None,
  ),
])
_sym_db.RegisterServiceDescriptor(_PROCESSSERVICE)

DESCRIPTOR.services_by_name['ProcessService'] = _PROCESSSERVICE

# @@protoc_insertion_point(module_scope)
